﻿<%@ Page Language="C#" MasterPageFile="~/manager/page/ManagerMasterPage.Master" AutoEventWireup="true" CodeBehind="manager.aspx.cs" Inherits="Com.Web.coffinegurunaru.manager.manager.manager"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="phHead" runat="server">
<script language="javascript" type="text/javascript" src="/manager/manager/manager.js"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function() {
	$("div.pager").pager({
		pageSize : 20,
		useCallback : true,
		pageNo : 1,
		callback:function(pageNo) {
			$.Manager.getList();
		}
	});
	$.Manager.getList();
});
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="phContent" runat="server">
<hr />
<br />
<table>
<tr>
	<td valign="top">
		<table cellpadding="0" cellspacing="1" style="background-color:Gray; width:100px;">
		<tr>
			<td style="background-color:Silver; text-align:center; height:50px;"><a href="/manager/manager/manager.aspx">관리자</a></td>
		</tr>
		<%if ( IsManager == 1 ) { %>
		<tr>
			<td style="background-color:White; text-align:center; height:50px;"><a href="/manager/manager/pageauth.aspx">권한 설정</a></td>
		</tr>
		<%} %>
		</table>
	</td>
	<td style="width:20px;"></td>
	<td valign="top">



        <table width="100%">
        <tr>
            <td align="left">
<% if (this.IsManager == 1 ) { %>
				<button class="addFormButton" onclick="$.Manager.showInputForm(); return false;">추가</button>
<% } %>
				<div style="border:solid 1px black;width:400px; display:none;" class="inputForm">
				<input type="hidden" class="managerSN" />
                <table style="border-color:white; border-style:none;" border="0px;" width="100%">
                <tr style="height:30px;">
                    <th style="width:100px; text-align:center">아이디</th>
                    <td><input type="text" class="managerId" style="width:300px"/></td>
				</tr>
				<tr>
                    <th style="width:100px; text-align:center">패스워드</th>
                    <td><input type="text" class="managerPassword" style="width:300px"/></td>
				</tr>
				<tr>
                    <th style="width:100px; text-align:center">이름</th>
                    <td><input type="text" class="managerName" style="width:300px"/></td>
				</tr>
				<tr>
					<td colspan="2">
						<button class="submit" onclick="$.Manager.submitInputForm(); return false;">완료</button>
						<button class="button" onclick="$.Manager.cancelInputForm(); return false;">최소</button>
					</td>
				</tr>
                </table>
				</div>
				<br />				
                <table class="managerList" style="border-color:red; border-style:solid;" border="1px;" >
                <thead>
                <tr style="height:30px;">
                    <td style="width:100px; text-align:center">SN</td>
                    <td style="width:150px; text-align:center">아이디</td>
                    <td style="width:150px; text-align:center">이름</td>
                    <td style="width:200px; text-align:center">관리</td>
                </tr>
                </thead>
                <tbody>
                </tbody>
                </table>
                <div class="pager"></div>
			</td>
		</tr>
		</table>


	</td>
</tr>
</table>

</asp:Content>
